package com.gpframework.module.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gpframework.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @ClassName BrandAuditRecord
 * @Author gpframework
 * @Date 2022-03-23
 * @Version 1.0.0
 * @Description 品牌审核 PO对象
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("brand_audit_record")
public class BrandAuditRecord extends BasePlusEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long auditRecordId;
    /**
     * 品牌id
     */
    private Long brandId;
    /**
     * 品牌名称
     */
    private String brandName;
    /**
     * 审核状态(1审核中、2审核通过、3不通过、4禁用)
     */
    private Integer status;
    /**
     * 审核备注
     */
    private String comments;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 备注
     */
    private String remarks;

    public BrandAuditRecord(BrandInfo brandInfo) {
        this.brandId = brandInfo.getBrandId();
        this.brandName = brandInfo.getBrandName();
        this.status = brandInfo.getAuditStatus();
    }
}
